import request from "@/utils/request";

// 查询学生列表
export function listSmember(query) {
  return request({
    url: "/business/member/list",
    method: "get",
    params: query,
  });
}

// 查询学生所有列表
export function listAllSmember(query) {
  return request({
    url: "/business/member/listAll",
    method: "get",
    params: query,
  });
}

// 查询学生详细
export function getSmember(id) {
  return request({
    url: "/business/member/getInfo/" + id,
    method: "get",
  });
}

// 新增学生
export function addSmember(data) {
  return request({
    url: "/business/member/add",
    method: "post",
    data: data,
  });
}

// 修改学生
export function updateSmember(data) {
  return request({
    url: "/business/member/edit",
    method: "post",
    data: data,
  });
}

// 删除学生
export function delSmember(id) {
  return request({
    url: "/business/member/remove/" + id,
    method: "get",
  });
}
